Group { children [
    Background {
        groundAngle [ 1.309, 1.571 ]
        groundColor [ 0.1 0.1 0, 0.4 0.25 0.2, 0.6 0.6 0.6 ]
        skyAngle [ 1.309, 1.571 ]
        skyColor [ 0 0.2 0.7, 0 0.5 1, 1 1 1 ]
    }

    Viewpoint { position 19 19 60 }

    DEF sh Shape {
        appearance Appearance {
            material Material {
                emissiveColor 0 1 0
            }
        }
        geometry BitWrapper { 
            node DEF MG MeshGrid {
                gridCoord { }
                coord { }
                color { }
                texCoord { }
                normal { }
                displayLevel 4
                }
            type 0
     	      #url 12
            buffer "Torus_HCD.mgh"
        }
    }

		DEF Level_SET ScalarInterpolator  {
			 key [0 0.2 0.4 0.6 0.8]
			 keyValue [ 0 1 2 3 4 ]
		}
		DEF Level-TIMER TimeSensor { cycleInterval 2.0 loop TRUE} 
    ]
} 


ROUTE Level-TIMER.fraction_changed TO Level_SET.set_fraction
ROUTE Level_SET.value_changed TO MG.displayLevel
